﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Pantry.DataAccess;

namespace Pantry.Business
{
    public class ServicePremiseBus
    {
        private readonly ServicePremiseDao _servicePremiseDao;

        public ServicePremiseBus()
        {
            _servicePremiseDao = new ServicePremiseDao();
        }
        public DataTable SelectServicePremiseByServiceId(int serviceId)
        {
            return _servicePremiseDao.SelectServicePremiseByServiceId(serviceId);
        }
        public DataTable SelectServicePremiseNotBelongService()
        {
            return _servicePremiseDao.SelectServicePremiseNotBelongService();
        }
        public bool UpdatePremiseAddToService(string projectCode,string serviceId,int premiseId)
        {
            int result = _servicePremiseDao.UpdatePremiseAddToService(projectCode, serviceId, premiseId);
            return (result != 0);
        }
    }
}
